{% extends 'base.html' %}

{% block extra_head %}
<title>建立新的分类</title>
{% endblock %}

{% block content %}
<h2>添加新分类</h2>
<form action='/category' method='POST'>
    <label for='id_name'>名字</label>
    <input type='text' name='name' id='id_name'></input>
    <input type='submit' value='好啦'/>
</form>
<div class='error' style='color:red'>{{error}}</div>
{% endblock %}

